﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class DisbursementHistoryControl
    {
        DisbursementHistoryDAL dh = new DisbursementHistoryDAL();

        public List<object> getDisbursementList(string userName)
        {
            return dh.getDisbursementList(userName);
        }

        public List<object> getDisbursementListByDate(String userName, DateTime fromDate, DateTime toDate)
        {
            return dh.getDisbursementListByDate(userName, fromDate, toDate);
        }

        public int getDeptReqID(string userName, DateTime colldate, String collPointDetID)
        {
            //DateTime collDate = Convert.ToDateTime(colldate);
            return dh.getDeptReqID(userName, colldate, collPointDetID);
        }

        public List<object> getDDList(int deptReqID) {
            return dh.getDDList(deptReqID);
        }

        public object getDepartmentName(int deptReqID)
        {
            return dh.getDepartmentName(deptReqID);
        }

        public object getRepName(int deptReqID)
        {
            return dh.getRepName(deptReqID);
        }

        public object getRepNameCollected(int deptReqID)
        {
            return dh.getRepNameCollected(deptReqID);
        }

        public object getRepID(int deptReqID)
        {
            return dh.getRepID(deptReqID);
        }

        public object getEmpID(string userName) {
            return dh.getEmpID(userName);
        }

        public void addRepName(int deptReqID, int repID)
        {
            dh.addRepName(deptReqID, repID);
        }
    }
}
